<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>vw和vh</title>
    <style>
        #vwh,#fonts,#max,#min{
            width:150px;
            height:150px;
            background-color: yellow;
            margin:5px;
        }
        #vwh{
            font-size:10vw;
        }
        #fonts{
            font-size:15px;
        }
        #max{
            font-size: 10vmax;
        }
        #min{
            font-size:10vmin;
        }

    </style>
</head>
<body>
<!--vmax是相对于viewport中最大的来说vmin是相对于viewport最小的来说，vw,vh是相对于可视区来说的-->
<div id="vwh">你好</div>
<div id="fonts">你好</div>
<div id="max">你好</div>
<div id="min">你好</div>
<script>

</script>
</body>
</html>